// The custom objects script. Mostly items here, with a couple of other things,
// too.
beginscendatascript;

// ******************************* Items *******************************
// Items 450-465 are god items, used only for making a god party.
// Items 470-476 are books about scenarios for the Library.

begindefineitem 450;
	import = 58;
	it_full_name = "God Longsword";
	it_icon_adjust = 64;
	it_damage_per_level = 15;
	it_bonus = 10;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 451;
	import = 43; 
	it_full_name = "God Plate Mail";
	it_icon_adjust = 64;
	it_bonus = 50;
	it_protection = 120;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 54; // resist all effects (%)
	it_ability_str_2 = 25;
	it_ability_3 = 82; // resist all damage
	it_ability_str_3 = 50;

begindefineitem 452;
	import = 18;
	it_full_name = "Pants of God";
	it_icon_adjust = 64;
	it_protection = 100;
	it_value = 1000;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;

begindefineitem 453;
	import = 134;
	it_full_name = "God Large Shield";
	it_icon_adjust = 64;
	it_bonus = 250;
	it_protection = 100;
	it_value = 1000;
	it_weight = 10;
	it_identified = 1;
	it_encumbrance = 0;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 54; // resist all effects (%)
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 454;
	import = 144;
	it_full_name = "God Helm";
	it_icon_adjust = 64;
	it_bonus = 50;
	it_protection = 80;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 455;
	import = 148;
	it_full_name = "God Gauntlets";
	it_icon_adjust = 64;
	it_protection = 50;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 456;
	import = 208;
	it_full_name = "Ring of Total Immunity";
	it_icon_adjust = 64;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61; // add APs
	it_ability_str_1 = 3;
	it_ability_2 = 54; // resist all effects (%)
	it_ability_str_2 = 25;
	it_ability_3 = 64; // add to all statistics
	it_ability_str_3 = 25;
	it_ability_4 = 82; // resist all damage
	it_ability_str_4 = 50;

begindefineitem 457;
	import = 115;
	it_full_name = "Boots of Blinding Speed";
	it_icon_adjust = 64;
	it_protection = 40;
	it_bonus = 50;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61;
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 458;
	import = 325;
	it_full_name = "God Bracer";
	it_icon_adjust = 64;
	it_protection = 40;
	it_bonus = 50;
	it_value = 1000;
	it_weight = 10;
	it_encumbrance = 0;
	it_identified = 1;
	it_ability_1 = 61;
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_3 = 88; // lifesaving
	it_ability_str_3 = 15;

begindefineitem 459;
	import = 98;
	it_full_name = "God Crossbow";
	it_icon_adjust = 64;
	it_damage_per_level = 30;
	it_bonus = 50;
	it_value = 1000;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 61;
	it_ability_str_1 = 3;
	it_ability_2 = 64; // add to all statistics
	it_ability_str_2 = 25;
	it_ability_2 = 52; // affects missle to hit chance
	it_ability_str_2 = 15;

begindefineitem 460;
	import = 16;
	it_full_name = "Cloak of Immortality";
	it_icon_adjust = 64;
	it_protection = 100;
	it_bonus = 50;
	it_value = 1000;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 88; // lifesaving
	it_ability_str_1 = 15;
	it_ability_2 = 54; // resist all effects (%)
	it_ability_str_2 = 25;
	it_ability_3 = 64; // add to all statistics
	it_ability_str_3 = 25;
	it_ability_4 = 82; // resist all damage
	it_ability_str_4 = 50;

begindefineitem 461;
	import = 108;
	it_full_name = "Bolts of God";
	it_icon_adjust = 64;
	it_bonus = 8;
	it_weight = 1;
	it_identified = 1;
	
begindefineitem 462;
	import = 220;
	it_full_name = "Potion of Mighty Protection";
	it_icon_adjust = 64;
	it_value = 1000;
	it_floor_which_sheet = 1044;
	it_floor_which_icon = 5;
	it_inventory_icon = 4;
	it_weight = 1;
	it_identified = 1;
	it_ability_1 = 154; // Invulnerable
	it_ability_str_1 = 225;
	it_ability_2 = 155; // Magic Resistant
	it_ability_str_2 = 225;
	it_ability_3 = 164; // Sanctuary
	it_ability_str_3 = 225;
	it_ability_4 = 165; // Martyr's Shield
	it_ability_str_4 = 225;
begindefineitem 463;
	it_full_name = "Potion of Combat Strength";
	it_floor_which_sheet = 1043;
	it_floor_which_icon = 5;
	it_inventory_icon = 4;
	it_identified = 1;
	it_ability_1 = 151; // Bless
	it_ability_str_1 = 225;
	it_ability_2 = 153; // Haste
	it_ability_str_2 = 225;
	it_ability_3 = 166; // Divinely Touched
	it_ability_str_3 = 225;
	it_ability_4 = 172; // Regenerating
	it_ability_str_4 = 225;
begindefineitem 464;
	it_full_name = "Potion of Uninhibited Travel";
	it_floor_which_sheet = 1043;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	it_identified = 1;
	it_ability_1 = 174; // Featherfall
	it_ability_str_1 = 225;
	it_ability_2 = 175; // Flying
	it_ability_str_2 = 225;
	it_ability_3 = 176; // Safe Travel
	it_ability_str_3 = 225;
	it_ability_4 = 177; // Hovering Feet
	it_ability_str_4 = 225;
begindefineitem 465;
	it_full_name = "Potion of Useful Effects";
	it_floor_which_sheet = 1044;
	it_floor_which_icon = 7;
	it_inventory_icon = 6;
	it_identified = 1;
	it_ability_1 = 152; // Shield
	it_ability_str_1 = 225;
	it_ability_2 = 167; // Resistant
	it_ability_str_2 = 225;
	it_ability_3 = 169; // Enlightened
	it_ability_str_3 = 225;
	it_ability_4 = 173; // Nimble Fingers
	it_ability_str_4 = 225;
	
begindefineitem 470; // VoDT
	clear;
	it_full_name = "Valley of Dying Things";
	it_identified = 1;
	it_variety = 21;
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 1;
	it_inventory_icon = 1;
	it_weight = 5;
	it_identified = 1;
	it_ability_1 = 207;
	it_ability_str_1 = 11;

begindefineitem 471; // DWtD
	it_full_name = "Diplomacy With the Dead";
	it_floor_which_icon = 2;
	it_inventory_icon = 2;
	it_ability_str_1 = 12;

begindefineitem 472; // ZKR
	it_full_name = "The Za-Khazi Run";
	it_floor_which_icon = 3;
	it_inventory_icon = 3;
	it_ability_str_1 = 13;
	
begindefineitem 473; // ASR
	import = 470;
	it_full_name = "A Small Rebellion";
	it_icon_adjust = 16;
	it_ability_str_1 = 14;
// dark reddish-brown

begindefineitem 474; // BS
	import = 472;
	it_full_name = "Babysitting";
	it_icon_adjust = 64;
	it_ability_str_1 = 15;
// pinkish

begindefineitem 475; // RoR
	import = 471;
	it_full_name = "Roses of Reckoning";
	it_icon_adjust = 4;
	it_ability_str_1 = 16;
// dark green

begindefineitem 476; // ACoNR
	import = 470;
	it_full_name = "A Cave of No Return";
	it_icon_adjust = 256;
	it_ability_str_1 = 17;
// orangish

begindefineitem 477; // EM
	import = 471;
	it_full_name = "Emerald Mountain";
	it_icon_adjust = 256;
	it_ability_str_1 = 18;
	
begindefineitem 478; // DaC
	import = 470;
	it_full_name = "Death at Chapman's";
	it_icon_adjust = 8;
	it_ability_str_1 = 19;
	
begindefineitem 479; // APF
	import = 470;
	it_full_name = "A Perfect Forest";
	it_icon_adjust = 1;
	it_ability_str_1 = 20;
	
begindefineitem 480; // Can
	import = 472;
	it_full_name = "Canopy";
	it_icon_adjust = 4;
	it_ability_str_1 = 21;
	
begindefineitem 481; // X'D
	import = 470;
	it_full_name = "Xerch'de";
	it_icon_adjust = 32;
	it_ability_str_1 = 22;
	
begindefineitem 482; // Bahs
	import = 471;
	it_full_name = "Bahssikava";
	it_icon_adjust = 1;
	it_ability_str_1 = 23;
	
begindefineitem 483; // BC
	import = 472;
	it_full_name = "Backwater Calls";
	it_icon_adjust = 129;
	it_ability_str_1 = 24;
	
begindefineitem 484; // LP
	import = 471;
	it_full_name = "Lord Putidus";
	it_icon_adjust = 2;
	it_ability_str_1 = 25;
	
begindefineitem 485; // 9V
	import = 472;
	it_full_name = "Nine Variations on Point B";
	it_icon_adjust = 2;
	it_ability_str_1 = 26;
	
begindefineitem 486; // CV
	import = 472;
	it_full_name = "Cresent Valley";
	it_icon_adjust = 256;
	it_ability_str_1 = 27;
	
begindefineitem 487; // UV
	import = 472;
	it_full_name = "Undead Valley";
	it_icon_adjust = 320;
	it_ability_str_1 = 28;
	
begindefineitem 488; // DoK
	import = 471;
	it_full_name = "Druids of Krell";
	it_icon_adjust = 512;
	it_ability_str_1 = 29;
	
begindefineitem 489; // ALR
	import = 472;
	it_full_name = "A Large Rebellion";
	it_icon_adjust = 128;
	it_ability_str_1 = 30;
	
begindefineitem 490; // MA
	import = 470;
	it_full_name = "Mad Ambition";
	it_icon_adjust = 257;
	it_ability_str_1 = 31;
	
begindefineitem 491; // NM
	import = 472;
	it_full_name = "Nephilim Mystery";
	it_icon_adjust = 32;
	it_ability_str_1 = 32;
	
begindefineitem 492; // PG
	import = 473;
	it_full_name = "Proving Grounds";
	it_icon_adjust = 47;
	it_ability_str_1 = 33;
	
begindefineitem 493; // MoC
	import = 473;
	it_full_name = "Magus of Cattalon";
	it_icon_adjust = 131;
	it_ability_str_1 = 34;
	
// ******************************* Floors *******************************

// Two defaults floors. All I've done is made blocked versions so that NPCs
// don't randomly leave their areas.
begindefinefloor 130;
	import = 96;
	fl_special_property = 6;
	
begindefinefloor 131;
	import = 117;
	fl_special_property = 6;
	
// Also, a nicer-looking carpet.
begindefinefloor 132;
	import = 117;
	fl_icon_adjust = 5;
	
// ******************************* Terrains *******************************

// Color-shifted rune for changing character traits.
begindefineterrain 271;
	import = 270;
	te_icon_adjust = 3;

// Expand the light radius for torches.

begindefineterrain 421;
	import = 267;
begindefineterrain 267;
	te_light_radius = 15;
	
// Field for Level Raiser
begindefineterrain 422;
	import = 125;
	te_name = "Field";
	te_which_sheet = 764;
	te_which_icon = 0;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 42;
	te_anim_steps = 4;
	
// ******************************* Creatures *******************************

begindefinecreature 234; // Magic-using dragon (for the Arena)
	import = 101;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 8;